package com.designpattern.sixchapter.remotecontrol;

import com.designpattern.sixchapter.first.Command;

public class StereoOnWithCDCommand implements Command{

	Stereo  stereo;
	
	
	public StereoOnWithCDCommand(Stereo stereo) {
		super();
		this.stereo = stereo;
	}

	@Override
	public void execute() {
		stereo.on();
		stereo.setCd();
		stereo.setVolume(11);
		
	}


	@Override
	public void undo() {
		
	}

}
